// package com.xc.config;
//
// import org.springframework.context.annotation.Configuration;
// import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry;
// import org.springframework.web.servlet.config.annotation.WebMvcConfigurationSupport;
//
// @Configuration
// public class WebMvcConfig extends WebMvcConfigurationSupport {
//      // WebMvcConfigurationSupport 覆盖默认的Spring MVC配置，
//      // 导致Swagger无法正确地初始化和访问。对于knife4j是一样的结果
//     // 资源映射增加
//     @Override
//     protected void addResourceHandlers(ResourceHandlerRegistry registry) {
//         registry.addResourceHandler("doc.html")
//                 .addResourceLocations("classpath:/META-INF/resources/");
//         registry.addResourceHandler("/swagger-ui/**")
//                 .addResourceLocations("classpath:/META-INF/resources/webjars/swagger-ui/4.18.2/");
//         registry.addResourceHandler("/webjars/**")
//                 .addResourceLocations("classpath:/META-INF/resources/webjars/");
//     }
// }
